<div class="panel panel-default panel-intro">
    {:build_heading()}

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">
                        {:build_toolbar('refresh,add,edit,del')}
                        <div class="dropdown btn-group">
                            <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> <?= __('More') ?></a>
                            <ul class="dropdown-menu text-left" role="menu">
                                <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=1"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>
                                <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=0"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>
                            </ul>
                        </div>
                        <a class="btn btn-success btn-initBed" data-params="action=initBed" data-url="dormitory/Dorm/initBed" href="javascript:;"><i class="fa fa-play"></i> 生成床位</a>
                        <a class="btn btn-success btn-qrCode" data-params="action=qrCode" data-url="dormitory/Dorm/qrCode" href="javascript:;">查看二维码</a>
                    </div>
                    <table id="table" class="table table-striped table-bordered table-hover"
                           data-operate-edit="{:$auth->check('dormitory/dorm/edit')}"
                           data-operate-del="{:$auth->check('dormitory/dorm/del')}"
                           width="100%">
                    </table>
                </div>
            </div>

        </div>
    </div>
</div>

<script id="gardenTpl" type="text/html">
    <div class="row">
        <div class="col-xs-12">
            <div class="form-inline" data-toggle="cxselect" data-selects="garden_number,building_number">
                <input type="hidden" class="operate" data-name="a.garden_number" id="garden_number" value="=" />

                <select class="garden_number form-control" name="a.garden_number" data-url="dormitory/garden/cxSelect"></select>
                <select class="building_number form-control" name="building_number" data-url="dormitory/building/cxSelect" data-query-name="garden_number"></select>
            </div>
        </div>
    </div>
</script>

